#ifndef BRIGHTNESS_H
#define BRIGHTNESS_H

#include <QObject>
#include <QWidget>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <fcntl.h>
#include <linux/input.h>
#include <stdlib.h>


#define ALS_DEV  "/dev/input/event0"

class Brightness : public QWidget
{
    Q_OBJECT

public:
    explicit Brightness(QWidget *parent = nullptr);
    ~Brightness();

    void bh1726_read(int *data);

signals:


private:
    int bh1726_fd;

    int bh1726_init(void);
};

#endif // BRIGHTNESS_H
